<?php
/*
+--------------------------------------------------------------------------
|   phpBIZ v3.0  full version
|   ========================================
|   by taft@wjl.cn yejun@wjl.cn
|   http://www.phpbiz.cn http://www.wjl.cn
|   all rights reserved
+---------------------------------------------------------------------------
|
|   > 最后修改日期：2005-4-30 2006-2-8
|
+--------------------------------------------------------------------------
*/
!class_exists('Debug') && exit('Forbidden');
$idx = new SellerDetail;
class SellerDetail
{
	function SellerDetail()
	{
		global $INCOME,$BIZ,$DB;

		$id = intval($INCOME['SELLER_ID']);
		
		$DB -> db_query("SELECT * FROM biz_seller WHERE seller_id ='".$id."'");

		$seller_detail = $DB -> db_fetch_row();

		$BIZ -> assign("seller_detail",$seller_detail);

		$DB -> db_query("SELECT * FROM biz_shop WHERE seller_id='".$id."' ORDER BY  shop_create_time DESC");

		while( $r = $DB -> db_fetch_row() )
		{
			$tm =date("Y-m-d H:i", $r['shop_create_time']);
			$seller_shop[] = array($r['shop_id'],$tm,$r['shop_name']);
		}
		
		$BIZ -> assign("seller_shop",$seller_shop);

		$BIZ -> output("SellerDetail.tpl");
	
	}
}

?>